<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"
%><%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"
%><%@ taglib prefix="security" uri="http://www.springframework.org/security/tags"
%><%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"
%><%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"
%>
<head>
    <title><fmt:message key="site" /></title>
</head>
<body>
    <h1><fmt:message key="site" /></h1>
    <table>
        <tbody>
            
			<tr>
                <th><fmt:message key="site_hostName" /></th>
                <td>
                    <c:out value="${site.hostName}"/>               
				</td>
            </tr>
            <tr>
                <th><fmt:message key="site_schemaName" /></th>
                <td>
                    <c:out value="${site.schemaName}"/>               
				</td>
            </tr>
            <tr>
                <th><fmt:message key="site_name" /></th>
                <td>
                    <c:out value="${site.name}"/>                
				</td>
            </tr>
            <tr>
                <th><fmt:message key="site_rootPageInode" /></th>
                <td>
					<c:url var="showUrl" value="/domain/htmlPage/show">
						<c:param name="htmlPage.inode" value="${site.htmlPage.inode}" />
					</c:url>
                    <a href="${showUrl}"><c:out value="${site.htmlPage.title}"/></a>              
				</td>
            </tr>
        </tbody>
        <tfoot>
            <tr>
                <td colspan="2">
                    <div class="buttons">
                        <c:url var="updateUrl" value="/domain/site/updateForm">
                            <c:param name="site.inode" value="${site.inode}"/>
                        </c:url>
                        <a href="${updateUrl}"><span><fmt:message key="label.link.update"/></span></a>
                        <c:url var="confirmDeleteUrl" value="/domain/site/confirmDelete">
                            <c:param name="site.inode" value="${site.inode}"/>
                        </c:url>
                        <a id="confirmDeleteUrl" href="${confirmDeleteUrl}"><span><fmt:message key="label.link.delete"/></span></a>
                        <script type="text/javascript">
                            Spring.addDecoration(new Spring.AjaxEventDecoration({
                                elementId: "confirmDeleteUrl",
                                event: "onclick",
                                popup: "true",
                                params: { decorator: "none" }
                            }));
                        </script>
                    </div>
                </td>
            </tr>
        </tfoot>
    </table>
</body>
